package com.pg.service;

import com.pg.dao.BackendUserDao;
import com.pg.dto.LoginDto;
import com.pg.entity.BackendUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BackendUserService {
    @Autowired
    BackendUserDao backendUserDao;

    public BackendUser login(LoginDto loginDto) {
        BackendUser backendUser = backendUserDao.queryById(loginDto.getAccount(), loginDto.getPassword());
        return backendUser;
    }
}
